<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>在线翻译_小松</title>
    <meta name="keywords" content="在线翻译">
    <meta name="viewport" content="width=device-width, initial-scale=1.4, minimum-scale=1.0, maximum-scale=2.0">
    <link href="http://shared.ydstatic.com/plugins/search-provider.fanyi.xml" title="小松翻译" type="application/opensearchdescription+xml" rel="search">
    <link rel="shortcut icon" href="{{url_for('static', filename='image/ss.bmp')}}" type="image/x-icon">
    <link href="{{ url_for('static', filename='static.css') }}" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="{{ url_for('static', filename='jquery.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='function.js') }}"></script>

    <style type="text/css">
      #bar-warp{
        /*width:500px;
        height:30px;*/
        width: inherit;
        height:30px;
        border:1px solid green;
      }
      #bar{
        width:0px;
        height:30px;
        background:green;
      }
    </style>
</head>
<body class="fanyi-page">
    <div class="fanyi__nav">
        <div class="fanyi__nav__container">
            <ul class="fanyi__nav__list">
                {% if user == 1%}
                <li class="last"><a href="javascript:void(0)" id="loginblock" class="login-link" onclick="pre_login()" style="display: block">登录</a>

				</li>
                {% else %}
                <li class="last"><a href="javascript:void(0)" id="loginblock" class="login-link" onclick="pre_login()" style="display: none">登录</a>
                <div id="userbox" style="display:block" tet="{{user.user_id}}">
	            <span class="user-name" onclick="name_click()">{{user.user_name}}</span>
	            <div class="account-cover" id="account-cover" style="display:none;">
                <a class="my-docs" id="filelistid"  href="/filepage/{{user.user_id}}">我的文档翻译</a>
                <a class="login-out" href="/loginout">退出</a>
            	</div></div>
				</li>
                {% endif %}
            </ul>
            <a href="#" class="fanyi__nav__logo"></a>
	</div>
    </div>
    <div class="fanyi" style="min-height: 558px;">
        <div class="fanyi__operations">
            <div class="fanyi__operations--left">
                <div id="langSelect" class="lang-select item-select">
                    <span class="select-text">英语&nbsp; » &nbsp;中文</span>
                    <ul id="languageSelect" class="select clear">
                       <li class="default selected" data-value="AUTO"><a href="javascript:;">英语&nbsp; » &nbsp;中文</a></li>
<!--                       <li data-value="zh-CHS2en"><a href="javascript:;">中文&nbsp; » &nbsp;英语</a></li>-->
                        <!--
                       <li data-value="en2zh-CHS"><a href="javascript:;">英语&nbsp; » &nbsp;中文</a></li> --><!-- 
                       <li data-value="zh-CHS2ja"><a href="javascript:;">中文&nbsp; » &nbsp;日语</a></li>
                       <li data-value="ja2zh-CHS"><a href="javascript:;">日语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2ko"><a href="javascript:;">中文&nbsp; » &nbsp;韩语</a></li>
                       <li data-value="ko2zh-CHS"><a href="javascript:;">韩语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2fr"><a href="javascript:;">中文&nbsp; » &nbsp;法语</a></li>
                       <li data-value="fr2zh-CHS"><a href="javascript:;">法语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2de"><a href="javascript:;">中文&nbsp; » &nbsp;德语</a></li>
                       <li data-value="de2zh-CHS"><a href="javascript:;">德语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2ru"><a href="javascript:;">中文&nbsp; » &nbsp;俄语</a></li>
                       <li data-value="ru2zh-CHS"><a href="javascript:;">俄语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2es"><a href="javascript:;">中文&nbsp; » &nbsp;西班牙语</a></li>
                       <li data-value="es2zh-CHS"><a href="javascript:;">西班牙语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2pt"><a href="javascript:;">中文&nbsp; » &nbsp;葡萄牙语</a></li>
                       <li data-value="pt2zh-CHS"><a href="javascript:;">葡萄牙语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2it"><a href="javascript:;">中文&nbsp; » &nbsp;意大利语</a></li>
                       <li data-value="it2zh-CHS"><a href="javascript:;">意大利语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2vi"><a href="javascript:;">中文&nbsp; » &nbsp;越南语</a></li>
                       <li data-value="vi2zh-CHS"><a href="javascript:;">越南语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2id"><a href="javascript:;">中文&nbsp; » &nbsp;印尼语</a></li>
                       <li data-value="id2zh-CHS"><a href="javascript:;">印尼语&nbsp; » &nbsp;中文</a></li>
                       <li data-value="zh-CHS2ar"><a href="javascript:;">中文&nbsp; » &nbsp;阿拉伯语</a></li>
                       <li data-value="ar2zh-CHS"><a href="javascript:;">阿拉伯语&nbsp; » &nbsp;中文</a></li> -->
                    </ul>
                    <input class="select-input" id="language" name="language" type="hidden" value="AUTO">
                </div>
                <a class="fanyi__operations--machine" id="transMachine" onclick="rawtrans()" href="javascript:void(0);">翻译</a>
            </div>
            <div class="fanyi-error-message"></div>
        </div>
        <div class="fanyi__input">
            <div class="input__original">
                <div class="fanyi__input__bg">
                    <div id="docUploadBg" class="doc__upload--bg hidden">
                        <span class="doc-type"></span>
                        <div class="doc-infos">
                            <p class="doc-name"></p>
                            <span class="doc-error-msg hidden"></span>
                            <span class="doc-size-msg hidden"></span>
                        </div>
                        <a class="doc-delete" href="javascript:;"></a>
                    </div>
                    <div id="docUploadCon" class="doc__upload--con">
                        <form id="docUploadForm" method="post" enctype="multipart/form-data">
                            <span>上传文档</span>
                            <input id="docUploadFile" class="doc__upload--file" type="file" name="pic" onchange="upfile();"/>
                            <!-- <input name="your_file" type="file" id="docUploadFile" class="doc__upload--file"> -->
                            <div class="file__type--tips tips__container speaker__tips">
                                <span class="tips__pointer tips__pointer--down"></span>
                                <span>全新文档翻译，支持docx /pdf /jpg等格式中英互译，快来试用！</span>
                            </div>
                        </form>
                    </div>
                    <div id="inputOriginalCopy" class="input__original__area"></div>
                    <div id="inputselect" style="display: none;">
                    <div id="bar-warp"><div id="bar"></div></div><span id="precent"></span><br/></div>
                    <textarea id="inputOriginal" dir="auto" class="input__original__area" onblur="rawtrans()" placeholder="请输入你要翻译的文字;文档翻译，支持docx /pdf /jpg等格式中英互译"></textarea>
                    <div class="input__original__bar">
                        <div class="input__original__bar--fonts">
                            <span class="fonts__over">0</span>/<span class="fonts__limited">5000</span>
                        </div>
                        <a href="javascript:;" id="originalSpeaker" class="speaker">
                            <div class="tips__container speaker__tips">
                                <span class="tips__pointer tips__pointer--down"></span>
                                <span class="tips__text--short"></span>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="fanyi__popularize">
                    <a href="javascript:;" target="_blank" class="clog-js" data-clog="AD_TEXT_CLICK"></a>
                </div>
            </div>
            <div class="input__target">
                <div class="fanyi__input__bg">
                    <div id="docLangTip" class="doc-lang-tip">选择翻译语言，然后点击翻译按钮，即可翻译文档</div>
                    <div class="input__target__error" id="inputTargetError"></div>
                    <div id="transTarget" dir="auto" class="input__target__text"><p><span id="targetspantext"></span></p></div>
                    <textarea id="transTargetArea" class="input__target__text"></textarea>
                    <div class="input__target__bar">
                        <a href="javascript:;" id="targetSpeaker" class="speaker target__bar__parts">
                            <div class="tips__container speaker__tips">
                                <span class="tips__pointer tips__pointer--down"></span>
                            </div>
                        </a>
                        <a href="javascript:;" id="targetCopy" class="copy target__bar__parts">
                            <div class="tips__container speaker__tips">
                                <span class="tips__pointer tips__pointer--down"></span>
                                <span class="tips__text--short">复制</span>
                            </div>
                        </a>                        
                    </div>
                </div>
            </div>
        </div>
    </div>
    <form id="mapForm" target="_blank" method="POST" action="http://f.youdao.com/?path=fanyi&amp;vendor=new-fanyiinput">
        <input id="mapInput" type="hidden" name="text" value="">
    </form>
    <div class="fanyi__footer" style="display: block;">
      <a target="_blank" href="http://www.youdao.com/?keyfrom=fanyi-new.copyright">有道首页</a><span class="c_fnl">|</span><a target="_blank" href="http://dsp.youdao.com/?keyfrom=fanyi-new.copyright">有道智选</a><span class="c_fnl">|</span><a target="_blank" href="https://ke.youdao.com/?keyfrom=fanyi-new.copyright">有道精品课</a><span class="c_fnl">|</span><a target="_blank" href="http://www.youdao.com/about/index.html">关于有道</a><span class="c_fnl">|</span><a target="_blank" href="http://i.youdao.com">官方博客</a>
      <p class="c_fcopyright">© 2020 网易公司 <a href="http://www.163.com/">网易公司</a> <a href="http://www.youdao.com/terms/privacy.html">隐私政策</a> 京ICP证080268号 <a href="http://beian.miit.gov.cn">京ICP备10005211号</a> </p>
    </div>
    <div id="dialogCover" class="dialog-cover" style="display: none;"></div>
    <div id="loginAlert" class="dialog-alert">
        <a href="javascript:;" class="dialog-alert--close"></a>
        <div class="title">如需使用文档翻译功能，请先登录。</div>
        <div class="content"></div>
        <div class="btns-con">
        <a href="javascript:;" class="cancel">取消</a>
        <a href="javascript:;" class="ok">确定</a></div>
    </div>
    <div id="loginWindow" class="dialog-alert" style="display: none;">
            <a href="javascript:void(0)" onclick="pre_login()" class="dialog-alert--close"></a>
            <h3 class="login-title" style="height:30px;">使用账号密码登录</h3>
            <div class="content urs-login-content"><div id="urs-login-block" style="width: 400px; height: 353px;">
                <div id="urs-login-block" style="width: 400px; height: 280px;">
                    <iframe name="" frameborder="0" id="x-URS-iframe1584528060135.5554" scrolling="no" style="width: 100%; height: 100%; border: none; background: none;" src="/login">
                    </iframe>
                </div>
            </div></div>
        </div>
</body>
    </html>